package cn.yangliu.repository;

import cn.yangliu.entity.SettingDetail;
import cn.yangliu.jpa.base.repository.BaseRepository;
import org.springframework.data.jpa.repository.Modifying;

import java.util.Optional;

/**
 * @author 问道于盲
 * @date 2021-09-28
 */
public interface SettingDetailRepository extends BaseRepository<SettingDetail, Long> {

    Optional<SettingDetail> findBySettingId(Long settingId);

    @Modifying
    void deleteBySettingId(Long settingId);
}
